<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{mmSupplierBean.id}"/>
		<f:event type="preRenderView" listener="#{mmSupplierBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Mm Supplier"/>

	<ui:define name="header">
		Mm Supplier
	</ui:define>

	<ui:define name="subheader">
		View existing Mm Supplier
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="mmSupplierBeanMmSupplierSupplierNo" value="Supplier No:"/>
			<h:outputText id="mmSupplierBeanMmSupplierSupplierNo" value="#{mmSupplierBean.mmSupplier.supplierNo}"/>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierSysBusinessType" value="Sys Business Type:"/>
			<h:link id="mmSupplierBeanMmSupplierSysBusinessType" outcome="/sysBusinessType/view" value="#{mmSupplierBean.mmSupplier.sysBusinessType}">
				<f:param name="id" value="#{mmSupplierBean.mmSupplier.sysBusinessType.businessTypeNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierStatus" value="Mm Supplier Status:"/>
			<h:link id="mmSupplierBeanMmSupplierMmSupplierStatus" outcome="/mmSupplierStatus/view" value="#{mmSupplierBean.mmSupplier.mmSupplierStatus}">
				<f:param name="id" value="#{mmSupplierBean.mmSupplier.mmSupplierStatus.supplierStatusNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierType" value="Mm Supplier Type:"/>
			<h:link id="mmSupplierBeanMmSupplierMmSupplierType" outcome="/mmSupplierType/view" value="#{mmSupplierBean.mmSupplier.mmSupplierType}">
				<f:param name="id" value="#{mmSupplierBean.mmSupplier.mmSupplierType.supplierTypeNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierSysTitleName" value="Sys Title Name:"/>
			<h:link id="mmSupplierBeanMmSupplierSysTitleName" outcome="/sysTitleName/view" value="#{mmSupplierBean.mmSupplier.sysTitleName}">
				<f:param name="id" value="#{mmSupplierBean.mmSupplier.sysTitleName.titleNameNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierGroup" value="Mm Supplier Group:"/>
			<h:link id="mmSupplierBeanMmSupplierMmSupplierGroup" outcome="/mmSupplierGroup/view" value="#{mmSupplierBean.mmSupplier.mmSupplierGroup}">
				<f:param name="id" value="#{mmSupplierBean.mmSupplier.mmSupplierGroup.supplierGroupNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierSupplierCode" value="Supplier Code:"/>
			<h:outputText id="mmSupplierBeanMmSupplierSupplierCode" value="#{mmSupplierBean.mmSupplier.supplierCode}"/>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierSupplierFirstName" value="Supplier First Name:"/>
			<h:outputText id="mmSupplierBeanMmSupplierSupplierFirstName" value="#{mmSupplierBean.mmSupplier.supplierFirstName}"/>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierSupplierLastName" value="Supplier Last Name:"/>
			<h:outputText id="mmSupplierBeanMmSupplierSupplierLastName" value="#{mmSupplierBean.mmSupplier.supplierLastName}"/>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierSupplierIdCardNo" value="Supplier Id Card No:"/>
			<h:outputText id="mmSupplierBeanMmSupplierSupplierIdCardNo" value="#{mmSupplierBean.mmSupplier.supplierIdCardNo}"/>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierSupplierSex" value="Supplier Sex:"/>
			<h:outputText id="mmSupplierBeanMmSupplierSupplierSex" value="#{mmSupplierBean.mmSupplier.supplierSex}"/>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierAddrs" value="Mm Supplier Addrs:"/>
			<h:dataTable id="mmSupplierBeanMmSupplierMmSupplierAddrs" styleClass="data-table" value="#{forgeview:asList(mmSupplierBean.mmSupplier.mmSupplierAddrs)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Addr Type"/>
					</f:facet>
					<h:link outcome="/mmSupplierAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysAddrType" value="#{forgeview:display(_item.sysAddrType)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Addr 01"/>
					</f:facet>
					<h:link outcome="/mmSupplierAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysAddr01" value="#{forgeview:display(_item.sysAddr01)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Addr No"/>
					</f:facet>
					<h:link outcome="/mmSupplierAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierAddrNo" value="#{_item.supplierAddrNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Addr Moo"/>
					</f:facet>
					<h:link outcome="/mmSupplierAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierAddrMoo" value="#{_item.supplierAddrMoo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Addr Soi"/>
					</f:facet>
					<h:link outcome="/mmSupplierAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierAddrSoi" value="#{_item.supplierAddrSoi}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierPcPurchaseOrders" value="Pc Purchase Orders:"/>
			<h:dataTable id="mmSupplierBeanMmSupplierPcPurchaseOrders" styleClass="data-table" value="#{forgeview:asList(mmSupplierBean.mmSupplier.pcPurchaseOrders)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po No"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoNo" value="#{_item.poNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Code"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoCode" value="#{_item.poCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Descr"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDescr" value="#{_item.poDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Date"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDate" value="#{_item.poDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Discount Perc"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrder/view">
						<f:param name="id" value="#{_item.poNo}"/>
						<h:outputText id="itemPoDiscountPerc" value="#{_item.poDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierTermOfPayments" value="Mm Supplier Term Of Payments:"/>
			<h:dataTable id="mmSupplierBeanMmSupplierMmSupplierTermOfPayments" styleClass="data-table" value="#{forgeview:asList(mmSupplierBean.mmSupplier.mmSupplierTermOfPayments)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Term Of Payment"/>
					</f:facet>
					<h:link outcome="/mmSupplierTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysTermOfPayment" value="#{forgeview:display(_item.sysTermOfPayment)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Term Of Payment Effective Date"/>
					</f:facet>
					<h:link outcome="/mmSupplierTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierTermOfPaymentEffectiveDate" value="#{_item.supplierTermOfPaymentEffectiveDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Term Of Payment Expire Date"/>
					</f:facet>
					<h:link outcome="/mmSupplierTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierTermOfPaymentExpireDate" value="#{_item.supplierTermOfPaymentExpireDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Term Of Payment Is Active"/>
					</f:facet>
					<h:link outcome="/mmSupplierTermOfPayment/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierTermOfPaymentIsActive" value="#{_item.supplierTermOfPaymentIsActive}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierContacts" value="Mm Supplier Contacts:"/>
			<h:dataTable id="mmSupplierBeanMmSupplierMmSupplierContacts" styleClass="data-table" value="#{forgeview:asList(mmSupplierBean.mmSupplier.mmSupplierContacts)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Title Name"/>
					</f:facet>
					<h:link outcome="/mmSupplierContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysTitleName" value="#{forgeview:display(_item.sysTitleName)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Contact First Name"/>
					</f:facet>
					<h:link outcome="/mmSupplierContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierContactFirstName" value="#{_item.supplierContactFirstName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Contact Mid Name"/>
					</f:facet>
					<h:link outcome="/mmSupplierContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierContactMidName" value="#{_item.supplierContactMidName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Contact Last Name"/>
					</f:facet>
					<h:link outcome="/mmSupplierContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierContactLastName" value="#{_item.supplierContactLastName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Contact Phone No"/>
					</f:facet>
					<h:link outcome="/mmSupplierContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierContactPhoneNo" value="#{_item.supplierContactPhoneNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierPcPurchaseReqs" value="Pc Purchase Reqs:"/>
			<h:dataTable id="mmSupplierBeanMmSupplierPcPurchaseReqs" styleClass="data-table" value="#{forgeview:asList(mmSupplierBean.mmSupplier.pcPurchaseReqs)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr No"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrNo" value="#{_item.prNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Code"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrCode" value="#{_item.prCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Descr"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrDescr" value="#{_item.prDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Date"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrDate" value="#{_item.prDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Discount Perc"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReq/view">
						<f:param name="id" value="#{_item.prNo}"/>
						<h:outputText id="itemPrDiscountPerc" value="#{_item.prDiscountPerc}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="mmSupplierBeanMmSupplierMmSupplierDiscounts" value="Mm Supplier Discounts:"/>
			<h:dataTable id="mmSupplierBeanMmSupplierMmSupplierDiscounts" styleClass="data-table" value="#{forgeview:asList(mmSupplierBean.mmSupplier.mmSupplierDiscounts)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Discount Perc"/>
					</f:facet>
					<h:link outcome="/mmSupplierDiscount/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierDiscountPerc" value="#{_item.supplierDiscountPerc}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Discount Effective Date"/>
					</f:facet>
					<h:link outcome="/mmSupplierDiscount/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierDiscountEffectiveDate" value="#{_item.supplierDiscountEffectiveDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Discount Expire Date"/>
					</f:facet>
					<h:link outcome="/mmSupplierDiscount/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierDiscountExpireDate" value="#{_item.supplierDiscountExpireDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Supplier Discount Is Active"/>
					</f:facet>
					<h:link outcome="/mmSupplierDiscount/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSupplierDiscountIsActive" value="#{_item.supplierDiscountIsActive}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>